;
var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
function genProductInfo( ) {
    plan = {
        "planA":{
            "name":"蒲公英综合意外保险产品计划",
            "company":"华夏保险",
            "year":"18-65",
            "days":"1y",
            "people_count":"1",
            "myselfDriver":"",
            "airplane_death":"1000000",
            "common_traffic":"300000",
            "accident_death":"",
            "price":"49.00"
        },
        "planB":{
            "name":"蒲公英综合意外保险产品计划",
            "company":"华夏保险",
            "year":"18-65",
            "days":"1y",
            "people_count":"1",
            "myselfDriver":"",
            "airplane_death":"1000000",
            "common_traffic":"300000",
            "accident_death":"100000",
            "accident_medical":"10000",
            "price":"99.00"
        },
        "planC":{
            "name":"蒲公英综合意外保险产品计划",
            "company":"华夏保险",
            "year":"18-65",
            "days":"1y",
            "people_count":"1",
            "myselfDriver":"",
            "airplane_death":"5000000",
            "common_traffic":"300000",
            "accident_death":"300000",
            "accident_medical":"10000",
            "price":"289.00"
        }
    }
    for(k in plan ){
        data = plan[k];
        mysql.insertData( data );
        
    }
    mysql.close();
    
}